home *** CD-ROM | disk | FTP | other *** search
/ El Mac 7 / El Mac 7.iso / Actualizaciones / BBEdit 3.5.2 Update / HTML Tools Documentation / Scripting notes.txt < prev   
Encoding:
Text File  |  1996-01-03  |  1.6 KB  |  75 lines  |  [TEXT/R*ch]

  1. Some of the v2 tools are scriptable (in time they will all be). Here is some
  2. information about how to script them...
  3.  
  4. Your skeleton script would be...
  5.  
  6.     tell application BBEdit 3.5
  7.         -- insert the appropriate scripting here
  8.     end tell
  9.  
  10. Below are brief details of how you would script some of the tools...
  11.  
  12.  
  13.  
  14. HEADING
  15. =================================================================================
  16.  
  17. AppleScript:
  18.     syntax:        ...
  19.                 Heading level n
  20.                 ...
  21.             or
  22.                 ...
  23.                 heading level n with alignment aaaa
  24.                 ...
  25.     
  26.             where     n         is 1 - 6
  27.                     aaaa    is 'center', 'centre', 'left', 'right'
  28.     
  29.             
  30.     eg:                tell application BBEdit 3.5
  31.                         heading level 4 with alignment centre
  32.                     end tell
  33.  
  34.  
  35.  
  36. STYLE
  37. =================================================================================
  38. AppleScript:
  39.     syntax:            style aaaa
  40.     
  41.             where    aaaa    is 'bold', 'italic', 'subscript' etc
  42.     
  43.     eg:                tell application BBEdit 3.5
  44.                         style bold
  45.                     end tell
  46.     
  47.  
  48.  
  49. USER MARKUP
  50. =================================================================================
  51. AppleScript:
  52.     Syntax:            markup with aaaa
  53.     
  54.                 where    aaaa    is the macro string to use.
  55.     
  56.     eg:                markup with "!FA\"apples\"!IR\"pears\""
  57.     
  58.     Notes:        Remember you have to escape any quotes in the macro string.
  59.  
  60.  
  61.  
  62.  
  63. UPDATE
  64. =================================================================================
  65. AppleScript:
  66.     update ("aaaa" as alias)
  67.     
  68.     
  69.     Notes:    where aaaa is the path to the file or folder you wish to
  70.             update. If you pass a reference to a file, then only that file
  71.             will be updated. If the reference is to a folder, then the
  72.             contents of the folder and sub-folders will be updated.
  73.     
  74.     
  75.